Skip to content

[Feat] 관리자 검수 저장 & 채팅 로그 상세 보강#26

Merged
kimssirr merged 2 commits intodevfrom
feat/#21-3
Apr 30, 2026
Merged

[Feat] 관리자 검수 저장 & 채팅 로그 상세 보강#26
kimssirr merged 2 commits intodevfrom
feat/#21-3

Conversation

@kimssirr
Copy link
Copy Markdown
Contributor

유형

  • Feat
  • Fix
  • Design
  • Docs
  • Chore
  • Hotfix

작업 내용

변경 사항 (있다면)

  • 변경 사항 1
  • 변경 사항 2

리뷰 포인트

테스트

  • 로컬 실행 확인
  • /docs 수동 확인
  • pytest 실행

스크린샷

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a chat review management system, adding API endpoints for a paginated review queue and review storage, along with corresponding repository methods and Pydantic schemas. Feedback identifies a security vulnerability where the administrator's ID is accepted from the request body; it is recommended to extract this information from the authentication token instead.

Comment thread app/api/admin_chat.py
Comment on lines +88 to +93
def save_admin_chat_review_api(
request: AdminChatReviewSaveRequest,
chat_log_id: int = Path(ge=1),
db: Session = Depends(get_db),
) -> ApiResponse[AdminChatAdminReview]:
result = save_admin_chat_review(db, chat_log_id=chat_log_id, request=request)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-high high

AdminChatReviewSaveRequest에서 admin_id를 클라이언트로부터 직접 입력받는 방식은 보안상 취약할 수 있습니다. 인증된 관리자가 다른 관리자의 ID로 리뷰를 저장하는 등의 오용을 방지하기 위해, admin_id는 require_admin_token 종속성을 통해 얻은 인증 정보에서 추출하여 서버 측에서 처리하는 것을 권장합니다.

@kimssirr kimssirr self-assigned this Apr 30, 2026
@kimssirr kimssirr added the feat 구현·개선 사항에 관련된 내용입니다. label Apr 30, 2026
@kimssirr kimssirr changed the title [Feat] [Feat] 관리자 검수 저장 & 채팅 로그 상세 보강 Apr 30, 2026
@kimssirr kimssirr merged commit 2349ab2 into dev Apr 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 구현·개선 사항에 관련된 내용입니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant